<!DOCTYPE html>
<!--[if IE 8]> <html lang="en" class="ie8 no-js"> <![endif]-->
<!--[if IE 9]> <html lang="en" class="ie9 no-js"> <![endif]-->
<!--[if !IE]><!-->
<html lang="en" class="no-js">
<!--<![endif]-->

<head>
<meta charset="utf-8">
<title>SMM·支付 管理系统</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta content="width=device-width, initial-scale=1" name="viewport">
<meta content="" name="description">
<meta content="" name="author">
<link href="${request.getContextPath()}/Public/assets/admin/css/css.css" rel="stylesheet" type="text/css">
<link href="${request.getContextPath()}/Public/assets/global/plugins/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
<link href="${request.getContextPath()}/Public/assets/global/plugins/simple-line-icons/simple-line-icons.min.css" rel="stylesheet" type="text/css">
<link href="${request.getContextPath()}/Public/assets/global/plugins/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css">
<link href="${request.getContextPath()}/Public/assets/global/plugins/uniform/css/uniform.default.css" rel="stylesheet" type="text/css">
<link href="${request.getContextPath()}/Public/assets/global/css/components-rounded.css" id="style_components" rel="stylesheet" type="text/css">
<link href="${request.getContextPath()}/Public/assets/global/css/plugins.css" rel="stylesheet" type="text/css">
<link href="${request.getContextPath()}/Public/assets/admin/css/layout.css" rel="stylesheet" type="text/css">
<link href="${request.getContextPath()}/Public/assets/admin/css/themes/default.css" rel="stylesheet" type="text/css" id="style_color">
<link href="${request.getContextPath()}/Public/assets/admin/css/custom.css" rel="stylesheet" type="text/css">
<link href="${request.getContextPath()}/Public/assets/global/plugins/bootstrap-datepicker/css/bootstrap-datepicker.min.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" type="text/css" href="${request.getContextPath()}/Public/assets/global/plugins/jquery-notific8/jquery.notific8.min.css" />
<link href="${request.getContextPath()}/Public/assets/admin/css/common.css" rel="stylesheet" type="text/css">
<link href="${request.getContextPath()}/Public/assets/global/css/kkpager.css" rel="stylesheet" type="text/css">
<link rel="shortcut icon" href="${request.getContextPath()}/Public/favicon.ico">
<script>
	BASE_URL = '${request.getContextPath()}'
</script>
<style type="text/css">

.table-condensed {
	width: 100%;
}

.datepicker-inline {
	width: 100%;
}

.col-md-4,.col-md-6,.col-md-7,.col-md-12 {
	padding-right: 0px;
	padding-left: 0px;
}
.table>tbody>tr>td, .table>tbody>tr>th, .table>tfoot>tr>td, .table>tfoot>tr>th, .table>thead>tr>td, .table>thead>tr>th {
  border-bottom: 1px solid #ddd;
}
</style>

</head>

<body class="page-header-top-fixed page-footer-fixed">
	
	<div class="page-header">
		<!--头部开始-->
		<#include "/include/top.html" />
		<!-- 头部信息结束 -->
	</div>
	
	<div class="clearfix">
	</div>
	<div class="page-container">
		<#include "/include/menu.html" />
		<!-- 首页内容开始 -->
		<div class="page-content-wrapper">
		<div class="page-content" >
			<div>
				<h2 class="modal-title" style="color: 61636c;"></h2>
			</div>
			<div class="container-fluid">
				<div class="col-md-12" style="margin-top: 50px;">
					<div class="row">
						<div class="col-md-12">
							<div class="portlet light">
									<div class="portlet-body">
											<div class="row" style="height: 56px; text-align:left ;">
												<div class="col-sm-12">
													<div id="sample_2_filter" class="dataTables_filter">
													<input type="hidden" id="depotno" name="depotno" value="${depotno}">
														<label>操作员邮箱:
															<input type="search" class="form-control input-medium  input-inline" id="account" value="${account}" placeholder="操作员邮箱" aria-controls="sample_2" >
														</label>
														&nbsp;	   
														<label>企业名称：
															<input type="search" class="form-control input-medium  input-inline" id="companyName" value="${companyName}" placeholder="企业名称" aria-controls="sample_2" >
														</label>
														&nbsp;
														<label>操作日期:<input type="search" class="form-control input-small2 input-inline" placeholder="开始时间" name="startTime" id="startTime"  
																onClick="WdatePicker({dateFmt:'yyyy-MM-dd'})" value="${startTime}" >
														</label>
															-
														<label><input type="search" class="form-control input-small2 input-inline" placeholder="结束时间" name="endTime" id="endTime"  
																onClick="WdatePicker({dateFmt:'yyyy-MM-dd'})" value="${endTime}" >
														</label>
														&nbsp;
														<button  class="btn red"  type="button" onclick="selList();">
															<i class="fa fa-search"></i> 搜索 
														</button>
													</div>
												</div>
											</div>
										<div>			
										<table class="table table-striped table-bordered table-hover">
											<thead>
											<tr>
												<th>
													时间
												</th>
												<th>
													交易流水号
												</th>
												<th>
													企业名称
												</th>
												<th>
													交易类型
												</th>
												<th>
													金额
												</th>
												<th>
													操作员邮箱
												</th>
												<th>
													IP
												</th>
											</tr>
											</thead>
											<tbody>
											<#list loglist as list>
												<tr>
													<td>
														<#if list.createdAt??>
												  			${list.createdAt}
														<#else>
														</#if>
														
													</td>
													<td>
														<#if list.id??>
												  			${list.id}
														<#else>
														</#if>
													</td>
													<td>
													 	<#if list.companyName??>
												  			${list.companyName}
														<#else>
														</#if>
													</td>
													<td>
														<#if list.type??>
												  			${list.type}
														<#else>
														</#if>
													</td>
													<td>￥
														<#if list.trmoney??>
												  			${list.trmoney?string(',###.##')}
														<#else>
														</#if>
													</td>
													<td>
														<#if list.account??>
												  			${list.account}
														<#else>
														</#if>
													</td>
													<td>
														<#if list.ip??>
												  			${list.ip}
														<#else>
														</#if>
													</td>
													
												</tr>
											</#list>	
											</tbody>
										</table>
										</div>
									</div>
									<div style="width:80%;margin:0 auto;">
										<div id="kkpager"></div>
										<input type="hidden" value="${totalPage}" id="totalPage">
										<input type="hidden" value="${totalRecords}" id="totalRecords">
									</div>
								</div>
							</div>
						</div>	
					</div>
				</div>
			</div>
		</div>
		<!-- END PAGE CONTENT -->
	</div>
	<!-- END PAGE CONTAINER -->
	<!-- 底部开始 -->

	<!-- 底部结束 -->

	<!--[if lt IE 9]>
<script src="${request.getContextPath()}/Public/assets/global/plugins/respond.min.js"></script>
<script src="${request.getContextPath()}/Public/assets/global/plugins/excanvas.min.js"></script>
<![endif]-->
	<script src="${request.getContextPath()}/Public/assets/global/plugins/jquery.min.js" type="text/javascript"></script>
	<script src="${request.getContextPath()}/Public/assets/global/plugins/jquery-migrate.min.js" type="text/javascript"></script>
	<script src="${request.getContextPath()}/Public/assets/global/plugins/jquery-ui/jquery-ui.min.js" type="text/javascript"></script>
	<script src="${request.getContextPath()}/Public/assets/global/plugins/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
	<script src="${request.getContextPath()}/Public/assets/global/plugins/bootstrap-hover-dropdown/bootstrap-hover-dropdown.min.js" type="text/javascript"></script>
	<script src="${request.getContextPath()}/Public/assets/global/plugins/jquery-slimscroll/jquery.slimscroll.min.js" type="text/javascript"></script>
	<script src="${request.getContextPath()}/Public/assets/global/plugins/jquery.blockui.min.js" type="text/javascript"></script>
	<script src="${request.getContextPath()}/Public/assets/global/plugins/jquery.cokie.min.js" type="text/javascript"></script>
	<script src="${request.getContextPath()}/Public/assets/global/plugins/uniform/jquery.uniform.min.js" type="text/javascript"></script>
	<script src="${request.getContextPath()}/Public/assets/global/plugins/jquery-notific8/jquery.notific8.min.js"></script>
	<script src="${request.getContextPath()}/Public/assets/global/plugins/jquery.sparkline.min.js" type="text/javascript"></script>
	<script src="${request.getContextPath()}/Public/assets/global/plugins/bootstrap-datepicker/js/bootstrap-datepicker-index.js" type="text/javascript"></script>
	<script src="${request.getContextPath()}/Public/assets/global/scripts/metronic.js" type="text/javascript"></script>
	<script src="${request.getContextPath()}/Public/assets/admin/scripts/layout.js" type="text/javascript"></script>
	<script src="${request.getContextPath()}/Public/assets/admin/scripts/commonUtils.js" type="text/javascript"></script>
	<script src="${request.getContextPath()}/Public/assets/global/plugins/highcharts.js" type="text/javascript"></script>
	<script src="${request.getContextPath()}/Public/assets/global/plugins/kkpager.min.js" type="text/javascript"></script>
	<script type="text/javascript" src="${request.getContextPath()}/Public/My97DatePicker/WdatePicker.js"></script>
	<script>
		jQuery(document).ready(function() {

			Metronic.init(); // init metronic core componets
			Layout.init(); // init layout
			//IndexComponent.init(); // init index component
		});
		
		//初始化分页插件
		function getParameter(name) { 
			var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)"); 
			var r = window.location.search.substr(1).match(reg); 
			if (r!=null) return unescape(r[2]); return null;
		}
		//init
		$(function(){
// 			页面搜索条件
			var account= $('#account').val();
			var companyName= $('#companyName').val();
			var startTime= $('#startTime').val();
			var endTime= $('#endTime').val();
			
			var totalPage = $('#totalPage').val();
			var totalRecords = $('#totalRecords').val();
			var pageNo = getParameter('pno');
			if(!pageNo){
				pageNo = 1;
			}
			//生成分页
			//有些参数是可选的，比如lang，若不传有默认值
			kkpager.generPageHtml({
				pno : pageNo,
				//总页码
				total : totalPage,
				//总数据条数
				totalRecords : totalRecords,
				
				getLink : function(n){
					return this.hrefFormer + this.hrefLatter + "?pno="+n+"&account="+account+"&companyName="+companyName+"&startTime="+startTime+"&endTime="+endTime;
																	//account="+account+"&companyName="+companyName+"&startTime="+startTime+"&endTime="+endTime;
				}	
			});
		});
		
		function doClick(userId,countMoney,bankFactMoney){
			var url="${request.getContextPath()}/UserAccount/goUpdate.do?userId="+userId+"&countMoney="+countMoney+"&bankFactMoney="+bankFactMoney;
			CommonUtils.editModal(url,800);
		}
		//页面搜索区域  companyName   userName   mallUserName   bankAccountNo
		function selList(){
			var account= $('#account').val();
			var companyName= $('#companyName').val();
			var startTime= $('#startTime').val();
			var endTime= $('#endTime').val();
			var url=BASE_URL+"/operationLog/list.do?account="+account+"&companyName="+companyName+"&startTime="+startTime+"&endTime="+endTime;
			window.location =url;
		}
		//清除页面搜索区域
		function removeVal(){
			$('#companyName').val("");
			$('#userName').val("");
			$('#mallUserName').val("");
			$('#bankAccountNo').val("");
		}

	</script>
</body>
</html>